TELSetVolume
Sets the volume and state of a terminal device.
pascal TELErr TELSetVolume ( TELHandle hTEL, short volType, short *level, short volState);
hTEL
- A handle to a telephone record associated with a telephone terminal.
volType
- The type of terminal device. See "Volume Controls" on page 2-12 for a description of the device types that have a volume and state.
level
- On entry, a value that indicates the desired volume level of the specified terminal device. On exit, a value that indicates the actual volume level of that device.
volState
- A value that indicates the desired volume state of the specified terminal device. See "Volume Controls" on page 2-12 for a description of the available volume states.
- function result
- A result code.
DESCRIPTION
TheTELSetVolume
function sets the volume level and state of the terminal device specified by thevolType
andhTEL
parameters to the values specified in thelevel
andvolState
parameters. The value specified in thelevel
parameter should be betweentelVolMin
andtelVolMax
. You can also pass the valuetelVolSame
to have the volume remain at its current level. The value specified in thevolState
parameter should be eithertelVolStateOn
ortelVolStateOff
. You can also pass the valuetelVolStateSame
to have the device remain in its current state.Different telephone tools may support different maximum volume levels. To determine the maximum volume level supported by a particular tool, pass
telVolMax
in thelevel
parameter and then inspect the value returned byTELSetVolume
in thelevel
parameter.SPECIAL CONSIDERATIONS
Some terminals might not support theTELSetVolume
function.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help